﻿<UserControl x:Class="uTorrentSL.Views.SettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             d:DesignWidth="500"
             d:DesignHeight="500"
             DataContext="{Binding SettingsViewModel, Source={StaticResource Locator}}">
    <Grid>
        <ListBox  Margin="0,50,0,0" x:Name="lbFilters" Grid.Row="1"  ItemsSource="{Binding Path=Data.Settings}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <TextBlock Text="{Binding Name}" Margin="0,0,20,0" Grid.Column="0" VerticalAlignment="Top" />
                            <TextBlock Text="{Binding Type}" Foreground="Gray" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Top" />
                        </Grid>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
